<?php
class GoodsModel extends Model {
	
	public function GoodsRead(){
		// $link     = M('goods_gallery');  
		$goods_id = I('post.goods_id',229);
		$where    = array('goods_id'=>$goods_id);
		$data     = $this
		->where($where)
		->find();
		$images   = $link->
		where($where)
		->select();
		$data['images_arr'] = $images;
		return $data;
	}
}